<ion-view id="myorder-gwb" view-title="公务宝订单" cache-view="false" align-title="center" hide-tabs>
  <!-- 页眉 -->
  <div class="bar bar-header assertive-bg">
    <a class="button icon-left ion-ios-arrow-back button-clear button-light "></a>
    <h1 class="title light">我的订单</h1>
  </div>

  <div class="tabs myorder" style="background-color: #fff;">
    <a class="tab-item active" href="#/tab/myorder-gwb" ng-click="ordertype(0)" style="color: #000;">
      全部
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(10)" style="color: #000;">
      待确认
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(20)" style="color: #000;">
      待付款
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(99)" style="color: #000;">
      已完成
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(90)" style="color: #000;">
      已取消
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(30)" style="color: #000;">
      待发货
    </a>
    <a class="tab-item" href="#/tab/myorder-gwb" ng-click="ordertype(50)" style="color: #000;">
      支付中
    </a>
  </div>
  <!--支付密码-->
  <div class="input-pw" ng-style="bgpw">
    <p>请输入支付密码</p>
    <div class="line"></div>
    <a href="#/tab/myorder-pay?choos=1">
      <div class="shouldpay" >
        <p>应付： ￥{{shouldpay}}</p>
        <p>{{data.bankBranchName}}</p>
        <p>{{data.acctName}}
          <span class="arrow"></span></p>
        <p>{{data.acctNo}}</p>
      </div>
    </a>
    <div class="line"></div>
    <a href="#/tab/myorder-pay?choos=2">
      <div ng-style="addorreduce" class="choose-task">
        <!--task取值来源为$rootscope-->
        <input type="text" placeholder="请选择所在任务" value="{{task.projectName}}"> <span class="arrow"></span>
      </div>
    </a>
    <div ng-style="addorreduce" class="line"></div>
    <a href="#/tab/myorder-pay?choos=3">
      <div ng-style="addorreduce" class="choose-class" >
        <!--chooseclass取值来源为$rootscope-->
        <input type="text" placeholder="请选择消费品类" value="{{chooseclass.itemValue}}">
        <span class="arrow"></span>
      </div>
    </a>
    <div ng-style="addorreduce" class="line"></div>
    <input type="password" class="pw"
           ng-model="pwvalue"
           ng-change="pwchange()" placeholder="请输入支付密码">
    <div class="button-frame">
      <input type="button" value="取消"  ng-click="cancel()">
      <!--添加付款用户信息-->

      <input type="button" ng-click="paysubmit()" value="付款">
    </div>
  </div>
  <!--背景阴影-->
  <div class="shadow" ng-style="bgpw" ng-click="cancel()"></div>
  <ion-content class="tabs-striped tabs-top tabs-background-positive tabs-color-light has-header scroll-content ">
    <!-- 内容 -->

    <!--订单内容-->
    <div class="mycontent">
      <div class="mymodel" ng-repeat="item in arrlist">
        <div class="mymodel-inner clearfixed">
          <div class="son1">
            <span >{{item.sellerName}}</span>
            <span class="son11">{{statustype(item.status)}}</span>
          </div>
          <div class="son2 clearfixed">
            <p class="son20">
              订单编号：<span>{{item.acctId}}</span>
            </p>
            <p class="son21">
              <span>{{item.productName}}</span>
              <span class="son30">￥{{item.price}}</span>
            </p>
            <p class="son22">
              x<span >{{item.count}}</span>
            </p>
          </div>
          <div class="son3 clearfixed">
            <p><span class="son31">实付：</span> <span class="son30">￥{{item.orderAmount}}</span></p>
            <p>共 <span class="son30">{{item.count}}</span> 件商品</p>
            <div>

              <button ng-style="cancelstyle" ng-click="cancelorder(item)">取消订单</button>
              <button ng-style="paystyle" ng-click="appear(item)">付款</button>

            </div>
          </div>
        </div>
      </div>
    </div>
  </ion-content>

</ion-view>

